<?php

/**
 * Filter form base class.
 *
 * @method Filter getObject() Returns the current form's model object
 *
 * @package    raidpoints
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormGeneratedTemplate.php 24171 2009-11-19 16:37:50Z Kris.Wallsmith $
 */
abstract class ImportForm extends sfForm
{
  public function setup()
  {
    $this->setWidgets(array(
      'uploadedfile'          => new sfWidgetFormInputFile(),
    ));

    $this->setValidators(array(
      'uploadedfile'       => new sfValidatorFile(array('max_size' => 5000000)),
    ));

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    $this->setupInheritance();

    parent::setup();
  }

  public function getModelName()
  {
    return 'Import';
  }

}
